.class public Lcom/example/m6wmr/NoticdetActivity;
.super Landroid/app/Activity;
.source "NoticdetActivity.java"


# instance fields
.field private content:Ljava/lang/String;

.field m:Lmyapp/MyApp;

.field private status:Ljava/lang/String;

.field private time:Ljava/lang/String;

.field private tv_content:Landroid/widget/TextView;

.field private tv_status:Landroid/widget/TextView;

.field private tv_time:Landroid/widget/TextView;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 16
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 19
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/example/m6wmr/NoticdetActivity;->m:Lmyapp/MyApp;

    .line 16
    return-void
.end method

.method private init()V
    .locals 1

    .prologue
    .line 55
    const v0, 0x7f0c027b

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/NoticdetActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/example/m6wmr/NoticdetActivity;->tv_time:Landroid/widget/TextView;

    .line 56
    const v0, 0x7f0c0106

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/NoticdetActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/example/m6wmr/NoticdetActivity;->tv_status:Landroid/widget/TextView;

    .line 57
    const v0, 0x7f0c0307

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/NoticdetActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/example/m6wmr/NoticdetActivity;->tv_content:Landroid/widget/TextView;

    .line 60
    return-void
.end method


# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
    .locals 5
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 23
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 24
    const v3, 0x7f0300af

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/NoticdetActivity;->setContentView(I)V

    .line 25
    invoke-direct {p0}, Lcom/example/m6wmr/NoticdetActivity;->init()V

    .line 26
    invoke-virtual {p0}, Lcom/example/m6wmr/NoticdetActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    .line 27
    .local v1, "intent":Landroid/content/Intent;
    const-string v3, "time"

    invoke-virtual {v1, v3}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, p0, Lcom/example/m6wmr/NoticdetActivity;->time:Ljava/lang/String;

    .line 28
    const-string v3, "title"

    invoke-virtual {v1, v3}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, p0, Lcom/example/m6wmr/NoticdetActivity;->status:Ljava/lang/String;

    .line 29
    const-string v3, "content"

    invoke-virtual {v1, v3}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, p0, Lcom/example/m6wmr/NoticdetActivity;->content:Ljava/lang/String;

    .line 31
    invoke-virtual {p0}, Lcom/example/m6wmr/NoticdetActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v3

    check-cast v3, Lmyapp/MyApp;

    iput-object v3, p0, Lcom/example/m6wmr/NoticdetActivity;->m:Lmyapp/MyApp;

    .line 32
    const/high16 v3, 0x7f0c0000

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/NoticdetActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/LinearLayout;

    .line 33
    .local v2, "top":Landroid/widget/LinearLayout;
    iget-object v3, p0, Lcom/example/m6wmr/NoticdetActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v3}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v3

    const-string v4, "1"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 34
    const v3, 0x7f070026

    invoke-virtual {v2, v3}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 37
    :cond_0
    iget-object v3, p0, Lcom/example/m6wmr/NoticdetActivity;->tv_time:Landroid/widget/TextView;

    iget-object v4, p0, Lcom/example/m6wmr/NoticdetActivity;->time:Ljava/lang/String;

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 38
    iget-object v3, p0, Lcom/example/m6wmr/NoticdetActivity;->tv_status:Landroid/widget/TextView;

    iget-object v4, p0, Lcom/example/m6wmr/NoticdetActivity;->status:Ljava/lang/String;

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 39
    iget-object v3, p0, Lcom/example/m6wmr/NoticdetActivity;->tv_content:Landroid/widget/TextView;

    iget-object v4, p0, Lcom/example/m6wmr/NoticdetActivity;->content:Ljava/lang/String;

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 43
    const v3, 0x7f0c0001

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/NoticdetActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    .line 44
    .local v0, "closebtn":Landroid/widget/ImageView;
    new-instance v3, Lcom/example/m6wmr/NoticdetActivity$1;

    invoke-direct {v3, p0}, Lcom/example/m6wmr/NoticdetActivity$1;-><init>(Lcom/example/m6wmr/NoticdetActivity;)V

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 50
    return-void
.end method
